<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="stripes"
	uri="http://stripes.sourceforge.net/stripes.tld"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>数据库管理工具</title>
		<link href="/j2eeshop/css/j2eeshop.css" rel="stylesheet"
			type="text/css" />
		<link href="/j2eeshop/dtree/dtree.css" rel="stylesheet"
			type="text/css" />
		<script type="text/javascript" src="/j2eeshop/dtree/dtree.js"></script>
	<script type="text/javascript">	
	//暂时没有使用
		function GetSelectionText() {
				
				   if (window.getSelection) {
				    alert(window.getSelection().toString());  
				   }
				   else if (document.selection && document.selection.createRange) {   
				     alert(document.selection.createRange().text);
				   }
				 
				   
				}
				
		function  exeSql()
		{
		
		
		
		
		} 								
				
		
</script>

	</head>
	<body>

		<%@ include file="../../inc/head.inc"%>

		<div id="ctop">
			<h1>
				J2eeshop SQL DB!
			</h1>
		</div>
		<div id="ccenter">

			<div id="ccleft" style="width:25%; float: left;">
				<p>
					<a href="javascript: j2eeshop.openAll();">open all</a> |
					<a href="javascript: j2eeshop.closeAll();">close all</a>
				</p>

				<script type="text/javascript">
						<!-- 
				
						j2eeshop = new dTree('j2eeshop');
						j2eeshop.add('root',-1,'${actionBean.url}');
						j2eeshop.add('tables','root','tables','');
						
						<c:forEach var="hsqldb" items="${actionBean.hsqlList}">
					    j2eeshop.add('${hsqldb.tableName}','tables','${hsqldb.tableName}','Hsqldb.action?getResultSet=&hsqldb.tableName=${hsqldb.tableName}','','gridframe');		
						</c:forEach>
						
						j2eeshop.add('views','root','views','');
						j2eeshop.add('global','root','global','');		
						j2eeshop.add('temporary','root','temporary','');	
						document.write(j2eeshop);
				
						//-->
						
						
						
						function show()
						{
						
						alert("sdfsd");
						}
						
						
					</script>

			</div>

			<div id="ccright" style="width:74%;">
				<stripes:form beanclass="com.andy.stripes.actions.HsqldbActionBean" 	method="post" focus="" target="gridframe">
					<stripes:textarea name="hsqldb.sqlString" rows="10"		style="width:100%;font-weight:bold;" id="sqlString">
					</stripes:textarea>
					<p align="center"><stripes:submit name="exeuteSql" value="执行" class="btn" ></stripes:submit></p>
				</stripes:form>
			
				<iframe style="width:100%;" frameborder="0"  src="about:blank"  name="gridframe"></iframe>
				

			</div>

		</div>
		<%@ include file="../../inc/foot.inc"%>
	</body>
</html>
